class Cat:
    def __init__(self, name):
        self.name = name

    @classmethod
    def speak(cls):
        print('shout~~~~~~~')

    def miao(self):
        print('miao~~~~~~~')

# 创建 Cat 类的实例
cat = Cat('小白')
print(cat.name)
cat.miao()

# 调用类方法
Cat.speak()